<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTradesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('trades', function (Blueprint $table) {
            $table->increments('id')->unique();
            // 产品名称
            $table->string('name');
            // 产品图片
            $table->string('logo');
            // 产品分类
            $table->integer('cate_id');
            // 产品编号
            $table->string('number');
            // 产品价格
            $table->decimal('price');
            // 产品简介
            $table->text('brief');
            // 产品更新时间
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('trades');
    }
}
